package com.group.eams.service.impl;

import com.group.eams.entity.Student;
import com.group.eams.mapper.RecruitStudentMapper;
import com.group.eams.service.IRecruitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Doctor Who on 2016/11/4.
 */
@Service
public class RecruitServiceImpl implements IRecruitService {
    private RecruitStudentMapper recruitStudentMapper;

    @Autowired
    public RecruitServiceImpl(RecruitStudentMapper recruitStudentMapper){
        this.recruitStudentMapper = recruitStudentMapper;
    }

    @Override
    public List<Student> getAllRecruitStudent(){
        return recruitStudentMapper.getAllRecruitStudentList();
    }

    @Override
    public boolean delRecruitStudent(Student student){
        return recruitStudentMapper.delRecruitStudent(student);
    }

    @Override
    public List<Student> getRecruitStudent(Student student){
        return recruitStudentMapper.getRecruitStudentList(student);
    }
}
